/**
 * 选项卡
 *
 * @Author: Shann
 * @LastEditors: Shann
 * @Date: 2021-07-26 08:53:33
 * @LastEditTime: 2021-08-03 11:01:23
 * @Copyright: Copyright 2021-2021, all rights reserved. Essa.cn
 */
class Tabs {
    props = { defaultActiveKey: Number, onChange: Function };

    state = {
        childrens: [],
        labels: [],
        activeKey: this.props.defaultActiveKey,
    };

    handleClick(key) {
        this.state.activeKey = key;
        this.state.childrens.forEach(function (element) {
            element.state.activeKey = key;
        });
    }
}
